package com.willie.demo;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * <p>
 *
 * </p>
 *
 * @author willie
 * @since 2018/11/2
 */
public class DemoMain {
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext(
                "classpath:ApplicationContext.xml");
        Student student = (Student) context.getBean("student");
        student.test();
        System.out.println(student);
    }
}
